package com.week10.mybatis_annotation;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@EnableMyBatis(dataSource = "dataSource",
        configLocation = "classpath:mybatis/mybatis-config.xml",
        mapperLocations = {"classpath:mybatis/UserMapper.xml"},
        environment = "development",
        url = "jdbc:mysql://localhost:3306/test?serverTimezone=UTC&characterEncoding=utf8&useUnicode=true&useSSL=false",
        username = "root",
        password = "123456")
public class MybatisAnnotationApplication {

    public static void main(String[] args) {
        SpringApplication.run(MybatisAnnotationApplication.class, args);
    }

}
